#include <stdio.h>
int main()
{
	char arr[80] = { 0 };
	int i = 0;
	while ((arr[i] = getchar()) != '\n' || i == 80)
	{
		if (arr[i] >= 65 && arr[i] <= 90) 
			arr[i] = 155 - arr[i];
		i++;
	}
	printf("%s", arr);
	return 0;
}